package com.yxw.yxnet_cd_center.customer_service.dto;



import com.yxw.yxnet_cd_center.customer_service.entity.YxCsFlockUserEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
//import lombok.EqualsAndHashCode;



@Data
//@EqualsAndHashCode(callSuper = true)
public class YxCsFlockUserDTO   implements Serializable
{
    private static final long serialVersionUID = 81695364761203L;
    /**
    *主键
    */
    @NotNull(message = "主键不可为空")
    @ApiModelProperty(value = "主键")
    private Long Id;
    /**
    *人员ID
    */
    @ApiModelProperty(value = "人员ID")
    private Long userId;
    /**
    *群ID
    */
    @ApiModelProperty(value = "群ID")
    private Long flockId;
    /**
    *将DTO转换为ENTITY
    */
    public YxCsFlockUserEntity ConverToEntity()
    {
        YxCsFlockUserEntity oYxCsFlockUserEntity = new YxCsFlockUserEntity ();
        oYxCsFlockUserEntity.setId(Id) ;
        oYxCsFlockUserEntity.setUserId(userId) ;
        oYxCsFlockUserEntity.setFlockId(flockId) ;
        return oYxCsFlockUserEntity;
    }
}

